package cn.com.roy.thread.t7_7.threadeceptionmove;

public class Run2 {
    public static void main(String[] args) {
       MyThreadGroup myThreadGroup = new MyThreadGroup("我的线程组");
       MyThread myThread = new MyThread(myThreadGroup,"我的线程");
       //myThread.setUncaughtExceptionHandler(new ObjectUncaughtExceptionHandler());
       MyThread.setDefaultUncaughtExceptionHandler(new StateUncaughtExceptionHandler());
       myThread.start();
    }
}
